
import request from 'axios'
  export function sentChatMessage (msg) {
    //ajax 请求参数
    const postData  = {
      "messages":
      [
        {"role":"user","content":msg}
      ]
    };
    return request({
      url: '/chatMessage/api/baidu/chat',
      method: 'post',
      data: postData
    })
  }
